-- GENERATED SPELL FOR [Raging Colossus] --


function spell0_19188(pUnit, Event) --@Crystal Strike,n/a--
pUnit:FullCastSpellOnTarget(33688,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19188', 592, 1)
end

function spell1_19188(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(18501,pUnit)
pUnit:RegisterEvent('Sorts_19188', 5272, 1)
end

function spell2_19188(pUnit, Event) --@Knockdown,n/a--
pUnit:FullCastSpellOnTarget(11428,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19188', 2346, 1)
end

function Sorts_19188(pUnit, Event)
local choix_sorts_19188 = math.random(0, 2)
if choix_sorts_19188 == 0 then
pUnit:RegisterEvent('spell0_19188', 1, 1)
end
if choix_sorts_19188 == 1 then
pUnit:RegisterEvent('spell1_19188', 1, 1)
end
if choix_sorts_19188 == 2 then
pUnit:RegisterEvent('spell2_19188', 1, 1)
end
end

function mob19188_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19188', math.random(1500, 3000), 1)
end

function mob19188_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19188_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19188_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19188, 1, 'mob19188_Action')
RegisterUnitEvent(19188, 2, 'mob19188_Leave')
RegisterUnitEvent(19188, 3, 'mob19188_Kill')
RegisterUnitEvent(19188, 4, 'mob19188_Die')
